package com.youi.service.impl;

import com.youi.dao.MarketAdvertisementDao;
import com.youi.entity.MarketAdvertisement;
import com.youi.service.MarketAdvertisementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class MarketAdvertisementServiceImpl extends BaseServiceImpl<MarketAdvertisement> implements MarketAdvertisementService {


    private MarketAdvertisementDao marketAdvertisementDao;

    @Autowired
    public void setfaultRecordDao(MarketAdvertisementDao marketAdvertisementDao) {
        this.marketAdvertisementDao = marketAdvertisementDao;
        super.setBaseDAO(marketAdvertisementDao);
    }

    @Override
    public List<MarketAdvertisement> listAdvertisementByParam(Map<String, Object> params) {
        return marketAdvertisementDao.listAdvertisementByParam(params);
    }
}
